﻿/*
 * Copyright (C) 2012, Jesus Requejo <jesus.requejo@gmail.com> 
 * Licensed under Microsoft Public License (Ms-PL)
 * http://www.microsoft.com/en-us/openness/licenses.aspx#MPL
*/

namespace LoaderServiceManager {

   using System.Drawing;
   using System.Windows.Forms;

   public partial class PleaseWaitDialog : Form {
      private string LabelText { get; set; }
      public PleaseWaitDialog() {
         InitializeComponent();
      }

      public void ShowWaitDialog(string text) {
         LabelText = text;
         this.statusLabel.Text = text;
         this.Size = new Size(this.statusLabel.Size.Width + 40, this.statusLabel.Size.Height + 60);
         this.statusLabel.Location = new Point(20, 30);
         this.ShowDialog();
      }
   }
}
